package com.ecommerce.auth.dto;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class AuthResponse {

    private String token;
    private String refreshToken;
    private Long userId;
    private String username;
    private String email;
    private String phoneNumber;
    private String nickName;
    private String address;
    private String avatarUrl;
    private String gender;
    private LocalDateTime lastLoginTime;
    private List<String> roles;
    private String userType;

    public AuthResponse() {
    }

    public AuthResponse(String token, String refreshToken, Long userId, String username, String email, 
                       String phoneNumber, String nickName, String address, String avatarUrl, String gender, 
                       LocalDateTime lastLoginTime, List<String> roles, String userType) {
        this.token = token;
        this.refreshToken = refreshToken;
        this.userId = userId;
        this.username = username;
        this.email = email;
        this.phoneNumber = phoneNumber;
        this.nickName = nickName;
        this.address = address;
        this.avatarUrl = avatarUrl;
        this.gender = gender;
        this.lastLoginTime = lastLoginTime;
        this.roles = roles;
        this.userType = userType;
    }
}